package com.imooc.log.my

import org.apache.spark.sql.SparkSession

object Test2 {
  def main(args: Array[String]): Unit = {
    val spark = SparkSession.builder().appName("Test")
      .master("local[2]").getOrCreate()

    val acccess = spark.sparkContext.textFile("D://data/*")
    acccess.take(10).foreach(println)
  }

}
